<extend name="Index:info"/>
<block name="body">
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
  <div class="padding border-bottom">  
    <button type="button" class="button border-yellow" ><span class="icon-plus-square-o"></span><a href="{:U('index/add')}">添加内容</a></button>
  </div>
  <table class="table table-hover text-center">
    <tr>
      <th width="10%">ID</th>
	  <th width="15%">名称</th>
      <th width="30%">图片</th>
      
      <th width="20%">描述</th>
      <th width="15%">操作</th>
    </tr>
    <volist name="list" id="vo">
    <tr>

      <td>{$vo.id}</td>
	  <td>{$vo.title}</td>
      <td><img src="__PUBLIC__{$vo.image}" alt=""  height="80" /></td>
      

      <td>{$vo.url}</td>
      <td><div class="button-group">
      <a class="button border-main" href="{:U(edit)}?id={$vo.id}"><span class="icon-edit"></span> 修改</a>
      <a class="button border-red" href="{:U(del)}?id={$vo.id}" onclick="return del(1,1)"><span class="icon-trash-o"></span> 删除</a>
      </div></td>

    </tr>
    </volist>
    
  </table>
</div>
<script type="text/javascript">
function del(id,mid){
	if(confirm("您确定要删除吗?")){
	
	}
}
</script>

</div>
</block>